class Person:
    def __init__(self, Name, Age):
        self.name = Name
        self.age = Age
    def main(self):
        print("输入的名字是", self.name)
        print("输入的年龄是", self.age)


name = input("请输入你的名字:")
age = input("请输入你的年龄:")
p = Person(name, age)
p.main()
